<!--
 * @Descripttion:
 * @Author: Silence
 * @Date: 2023-05-27 19:35:27
 * @LastEditors: Silence
 * @LastEditTime: 2023-05-28 11:16:41
-->
<template>
  <div class="box">
    <div class="left">
      <ul>
        <li v-for="item in arr" :key="item.id">
          <router-link :to="item.path">{{ item.name }}</router-link>
        </li>
      </ul>
    </div>
    <div class="right">
      <router-view></router-view>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {
      arr: [
        { id: 1, path: '/monday', name: '周一' },
        { id: 2, path: '/tuesday', name: '周二' },
        { id: 3, path: '/wednesday', name: '周三' }
      ]
    }
  },
  created () {
    console.log(this, 111);
  },
  computed: {
  },
  methods: {
  }
}
</script>
<style lang='less'  scoped>
.box {
  width: 100%;
  display: flex;
  .left {
    width: 50px;
    background-color: green;
  }
  .right {
    flex: 1;
    background-color: yellow;
  }
}
</style>
